package com.schooleducation.service;

import java.util.List;

import com.schooleducation.entity.ExamDicType;
import com.schooleducation.entity.ExamDictinoary;
import com.schooleducation.entity.Exams;
import com.schooleducation.entity.User;
/**
 * 组卷服务
 */
public interface ExamsService {

	/**
	 * 获取题库试题
	 * @return
	 */
	public List<ExamDictinoary> getExamDictinoary(ExamDictinoary examDictinoary,int page);
	
	/**
	 * 获取试题类型
	 * @return
	 */
	public List<ExamDicType> getExamDicTypes(); 
	
	/**
	 * 组卷
	 * @return
	 */
	public Exams addExam(Exams exams);
	
	/**
	 * 获取试卷考题
	 * @param data
	 * @return
	 */
	public List<ExamDictinoary> getTestPaper(Exams exams);
	
	/**
	 * 学生课程考试列表
	 * @param user
	 * @return
	 */
	public List<Exams> getUserExams(User user);
	
	/**
	 * 获取试卷信息
	 * @param examid
	 * @return
	 */
	public Exams getExam(int examid);
	
	/**
	 * 修改试卷
	 * @return
	 */
	public Exams updateExam();
	
	/**
	 * 删除试卷
	 */
	public void deleteExam();
	
	/**
	 * 添加考试成绩(日了狗的方法)
	 */
	public void addScore(User user,String score,String examid);
	
}
